package com.yundasys.lab10designpattern.singleton;

/**
 * 第3种-使用静态变量(俗称的饿汉模式)
 *
 * @author jiangta
 * @version 1.0
 * @date 2021/4/14 10:18 上午
 */
public class EagerSingleton {
    private static EagerSingleton instance = new EagerSingleton();
    public static EagerSingleton getInstance() {
        return instance;
    }
}
